package javaee14.Model;

import org.springframework.stereotype.Component;

import java.sql.Date;
import java.text.SimpleDateFormat;
import java.time.DateTimeException;

@Component
public class In {
    private int id;
    private double inprice;
    private int innum;
    private String intime;
    private String who;

    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public double getInprice() {
        return inprice;
    }
    public void setInprice(double inprice) { this.inprice = inprice; }
    public int getInnum() {
        return innum;
    }
    public void setInnum(int innum) {
        this.innum = innum;
    }
    public String getIntime() {
        return intime;
    }
    public void setIntime(String intime) {
        this.intime = intime;
    }
    public String getWho() {
        return who;
    }
    public void setWho(String who) {
        this.who = who;
    }

    @Override
    public String toString() {
        return "In{" +
                "id=" + id +
                ", inprice='" + inprice + '\'' +
                ", innum=" + innum +
                ", intime=" + intime +
                ", who='" + who + '\'' +
                '}';
    }
}
